//
//  WBInfoManager.m
//  WeatherBar
//
//  Created by Bert on 2024/6/19.
//

#import "WBInfoManager.h"
#import "SSKeychain.h"

@interface WBInfoManager ()

@end

@implementation WBInfoManager

static WBInfoManager *var_instance;
+ (instancetype)wb_shareInstance
{
    if (var_instance==nil) {
        var_instance = [[super allocWithZone:NULL] init];
    }
    return var_instance;
}
+ (id)allocWithZone:(struct _NSZone *)zone {
    return [WBInfoManager wb_shareInstance];
}

- (id)copyWithZone:(struct _NSZone *)zone {
    return [WBInfoManager wb_shareInstance];
}
+ (void)wb_destroyInstance
{
//    NSLog(@"tabbarVC销毁了---");
    var_instance = nil;
}

//获取plist配置信息
- (NSDictionary *)var_businessInfo {
    if (!_var_businessInfo) {
        NSString *var_path = [[NSBundle mainBundle] pathForResource:@"WBBusinessInfo" ofType:@"plist"];
        NSDictionary *var_dict = [NSDictionary dictionaryWithContentsOfFile:var_path];
        _var_businessInfo = var_dict;
    }
    return _var_businessInfo;
}

+(NSString *)getIPV4 {
    return [WBIPTool wb_getIPV4];
}
+(NSString *)getIPV6 {
    return [WBIPTool wb_getIPV6];
}


@end
